IB/core: disallow registering 0-sized memory region