Coordinates not copied for dipole moment calculation with GPU update
With GPU update, we should wait for the coordinates to be copied to host before using them for calculating the dipole moment.
Does not seem to manifest often with CUDA, but can potentially lead to wrong results.
Fixed in master
with !1381 (merged), but needs backporting.