Restrict the scope of the status variable

The status variable is only used by the wait(2) system call in the
forked parent process.

Signed-off-by: Andrew Clayton <andrew@digital-domain.net>