The Mass Function of Active Black Holes in the Local Universe