Add resource_lock to server