Thermal Misalignment of Scalar Dark Matter