Set lock_thread_id = -1 within device_method