Implement lockfile in generateniqati.py.
Merge branch 'hotfix-generateniqati'