Clean Popen Compat
Proposed change to move the Popen compatibility lock to the subprocess_compat module, for all compatibility code to be together.
The check for Python versions on which the workaround is applied should match all affected ones (if I'm not mistaken), but may include unaffected ones (which should only slow things down a little, but nothing worse than current state).