Add some sanity methods to allow blocking methods to check that they're ...

...not being called on the libevent thread.

Useful to poke you in the eye if you write something which is liable to deadlock without requiring digging with gdb to figure out what's happened.