Generate tags in a temp file first.
This is because otherwise jumping to a tag while the tag file is being
generated will result in a "tag file not sorted" warning.
Ability to (re)generate tags when opening a new project.
Fix race condition between the statusline and the lock file.