Locke wrote this in the 17th century, when atheism was, as best, something conceptual, and even he changed his opinion on it. Locke's argument that there is nothing binding an atheist to oaths and promises has been proven to be false over time.
And if you're going to cite Locke, please also...