BeanFactory accepts getBean arguments for non-prototype beans as well

Issue: SPR-12488