loggable: Use threading instead of _thread