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
% change the id of the tree root
initializing destination source-hg repository
scanning source...
sorting...
converting...
1 Initial add
0 Changed root
% manifest of tip
644 file