Add sync lock.