refactor(machine): Make refresh an impl detail of CoreOSMachine
fix(machine): Protect CoreOSMachine with mutex