add lock for part.json access (complete last commit)