Sleep more in test_member_freeze to eschew races.
Fix most ResourceWarnings under Python 3.