put_bits: fix invalid shift by 32 in flush_put_bits()