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

fixes #103 and #108