Unreference the impromptu-background process.

Marking impromptu-background as `detached` is not enough, we also have
to inform the parent process to remove it from its references.