Fix race condition in Server.performRequests.
Fix race condition in Server.performRequests.

Server.resources and resource.store were called without proper locking.

ryszard/doorman,ryszard/doorman,youtube/doorman,youtube/doorman,ryszard/doorman,youtube/doorman