8156169: Some sound tests rarely hangs because of incorrect synchronizationReviewed-by: prr, amenkov