Zeroth law of black hole thermodynamics