add optional SINGLE_THREAD execution path that doesn't require
cooperative multithreading,
works correctly only when HAVE_SHARED_CONTEXT is defined aswell.
fixes KI-GOLD in single threaded mode
Merge pull request #112 from aliaspider/master

add optional SINGLE_THREAD execution path that doesn't require