RDMA/cma: Check that retry count values are in range