BeanHelper: avoid synchronized on null object