tern: writelock languages during sync