ptr_ring: fail early if queue occupies more than KMALLOC_MAX_SIZE