added file locks, might fix random disappearing settings with using multiple instances of Lich