Release the authmech before starting to free data in an authhandle.