Added mutex for child proc synchronization in Windows