Add compatibility with multiprocessing module locks timeout.
tests: Move "locker" closer to Test*Swarm classes.