[ASan] mark local function as static