Fix races in memcache raw_client_test.go and mock_client.go

The raw_client_test and concurrent use of mock_client raise warnings with go test -race. This adds mutex synchronization to mock_client (similar to raw_client) and fixes the test race in raw_client_test.