Make it_should_run_callbacks work with custom state_machine names

I needed this feature for something I'm working on, hopefully you'll consider it useful enough to merge in.

This is the first time I've submitted a pull request to a public repo, so apologies if there's anything I've not done correctly!