A Closer Look at the Learnability of Out-of-Distribution (OOD) Detection