fix posix_spawn interaction with fork and abort by taking lock