AvrLock: add AvrTempLock() function to avoid having to keep AvrLock objects around, which are empty.
Refactor the implementation to avoid duplication of the logic. Also force inlining of the functions
involved.
PrinterMain: trivial refactoring
Implement temperature sensors.