pvrdma: check return value from pvrdma_idx_ring_has_ routines