Replace a call to mgpu::DeviceThreadToShared with bulk::copy_n