Switching to use qio_channel_get_offset_unlocked and qio_channel_get_end_offset_unlocked