mm/kasan: fix false positive invalid-free reports with CONFIG_KASAN_SW_TAGS=y