tests: fix child_pid reference
180f9147 ("tests: Replace common variable with usual external variable") fixed the variable declaration, but there was no definition either. This adds it.
180f9147 ("tests: Replace common variable with usual external variable") fixed the variable declaration, but there was no definition either. This adds it.