General nucleation theory with inhibition for chemically reacting systems