[PATCH 2/3] userfaultfd: selftest: generalize read and poll