As there are multiple issues related to threading and locking as explained in #107 which become way more obvious when multi-threading is enabled.
Relates #107
And an additional small commit