[FABRIC-509] Replace waits with latches in GroupTest.