A bound particle coupled to two thermostats