Upper-critical dimension in a quantum impurity model: Critical theory of the asymmetric pseudogap Kondo problem