qthread fixes: is_locked initialization & destructor