On thermodynamics of AdS black holes in M-theory