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.
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.

ambrop72/aprinter,ambrop72/aprinter,johnkingsley/aprinter,fixator/aprinter,fixator/aprinter,ambrop72/aprinter,ambrop72/aprinter,johnkingsley/aprinter,johnkingsley/aprinter,ambrop72/aprinter,ambrop72/aprinter,fixator/aprinter,johnkingsley/aprinter,fixator/aprinter,johnkingsley/aprinter,fixator/aprinter,johnkingsley/aprinter,fixator/aprinter,johnkingsley/aprinter,ambrop72/aprinter