core: MachineIndex cleans up machine lock files