Added a synchronized block to try and fix a concurrency bug where multiple connections could trigger the creation of a user account at the same time and then cause a database error