Refactor interrupt handling in Steppable test code to remove some race conditions that only existed in test code.
Should hopefully allow tests to run successfully on Linux.