core.thread: New thread_{get,set}Suspendable() API.

This is useful for high-priority threads that absolutely must
not be suspended by e.g. the garbage collector.