added mutex to server