On the mass of black holes with scalar field hair in anti-de Sitter spacetime