fixed araqne/issue#958. acquire write lock before manifest read. manifest can be overwritten by other thread in race condition