Synchronize access to the loggedInUser