Fix deadlock in ps exited filter

Fixes #8909