nagbar macro for lock