perf/core: Fix unconditional securitylockeddown() call
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v5.4.117 by commit b246759284d6a2bc5b6f1009caeeb3abce2ec9ff, it was introduced in version v5.4 by commit b0c8fdc7fdb77586c3d1937050925b960743306e. For more details please see the references link.