perf: Fix perf_poll to return proper POLLHUP value