gh-159130: `_remote_debugging`: Do not return another thread when the selected thread is filtered out (#159132)