[PATCH 5.12 17/17] perf/core: Fix unconditional security_locked_down() call