bitstream: Avoid undefined behavior in bitstream_skip()