Uncertainty-based out-of-distribution detection requires suitable function space priors