Added some improvements due locking in multithreading environments

Attention, needs new version of jWordSplitter (> 3.4 required) because of package changes.