Only run the test if perl is threaded.