add a lock to calls to load_manifest - apparently, it's not thread safe

fixes #103 and #108
Merge pull request #139 from T045T/develop

add a lock to calls to load_manifest - apparently, it's not thread safe