Added work-around for race condition when an object is rated for the
first time, and there is more than one thread trying to add the rating
at the same time.