machinetalk/mkwrapper: fixed multithreading behavior