unify SCAN_LOCK thread lock