tern: fix release_writelock call