nagbar macro for lock

Macro for the nagbar lock