Fix Python process spawn deadlock issues when building system libc.