common/iobuf.c: Add some sanity checks to catch programmer bugs.