How to Overcome Curse-of-Dimensionality for Out-of-Distribution Detection?