Parameterize sleep setting in PG test.
Clean up locking.