[PATCH 6.5 090/285] perf lock: Dont pass an ERR_PTR() directly to perf_session__delete()