missing required lock

git-svn-id: http://svn.miranda-ng.org/main/trunk@4630 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
memory allocation mismatch

git-svn-id: http://svn.miranda-ng.org/main/trunk@4631 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
- fix own nick in chat log
- add thread sync on contact searching in db

git-svn-id: http://svn.miranda-ng.org/main/trunk@4632 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c