Remove the threading bits from edmnext.h and move them into a new
mk_threads.h where they can be shared by other hosts.