Fix autowiring performance regression

Revert commit e1d11ec99d40051ecdb60191c49bc587373a031d and use
ConcurrentReferenceHashMap to fix SPR-8956 memory leak instead.

Issue: SPR-11875, SPR-8956