bb #7002: safely handle hook_lsig_matches across pre-scan callbacks