monitor.c: sanity check on waitpid return value

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>