release lock when no sync is done too