[PATCH 5.3 068/163] perf/core: Fix corner case in perf_rotate_context()