tests: Fixed hadoop test.
Fixed a race condition in the RPC client that could lead to data corruption.