entitymanager thread safe