[tor-commits] [stem/master] Fix #6248 and make test_get_pid_by_open_file cross-platform while doing so