pidns: fix free_pid() to handle the first fork failure