make de265_progress_lock a proper class