[PATCH] Fix failure path in alloc_pid()