Revert be282d3d76fec205 - it wasn't a problem with pthreads