common: add an extra check in autobuf_enlarge to avoid a compiler warning