[PATCH openEuler-5.10-LTS 16/31] perf: Fix sys_perf_event_open() race against self