fix placement of unlock at end of halGetMaf