[Java] Correct trivial race condition in HumanObjectPeerTest