Added timeouts on mutex locks in server code.