cmdutil: replace unix pipe handshake with file lock
The pipe handshake cannot be implemented with Windows detached process, which
disables handle inheritance.
Fix 2/3 for issue421
....................----------------------------------------------------------------------Ran 20 tests in 0.000sOK