Add a test for FR #46487 (Dereferencing process-handles no longer waits on those processes)