Improve tmp file ignore

* Do not ignore lock files created by libreoffice
* Ignore temp files created by MSOffice like ~WRL0001.tmp
Merge pull request #780 from haiwen/ignore

Improve tmp file ignore