[PATCH 6.1 796/798] perf lock: Dont pass an ERR_PTR() directly to perf_session__delete()