Gaia Data Release 2 distances and peculiar velocities for Galactic black hole transients