[asan] inline flags(), up to 1% perf gain on malloc-intensive code