Reverse lock order by using local variable.  This will shut up "acquiring duplicate lock of same type" message.
Reverse lock order by using local variable.  This will shut up "acquiring
duplicate lock of same type" message.

Reviewed by:	mckusick

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase