Mutex sync on server was in wrong place