Added lock/unlock commands to the GM accessor class.
Fixed incorrect method invocation.