upload-pack: Use finish_{command,async}() instead of waitpid().