fix server_test data race bug

fix server_test data race bug.