[PATCH 5.4] perf/core: Avoid put_page() when GUP fails