Add cache flush to surface put_bits functions