Infinite-dimensional Mahalanobis Distance with Applications to Kernelized Novelty Detection (JMLR, 2026)