(libT) add assertions to check that block-writing functions are only invoked in the libtransmission thread

git-svn-id: svn://svn.transmissionbt.com/Transmission/trunk@13909 f4695dd4-2c0a-0410-b89c-da849a56a58e