A mechanic was troubleshooting a gear box for a pan line to a bread molder. He removed an air line to the gear box, lubricated the line, and put it back on. He then moved the chain and sprocket and the motor kicked on, causing an avulsion injury to his left thumb.