st/mesa: refactor st_bufferobj_map_range()