Sleep more in test_member_freeze to eschew races.

Fix most ResourceWarnings/DeprecationWarnings under Python 3.
Can you add a comment here explaining why replSetStepDown is needed, for the benefit of future maintainers?