Further locking optimizations for the retrieval of non-singleton beans

Issue: SPR-12250
(cherry picked from commit 9d83281)
Provider declaration for @Value method argument works again

Issue: SPR-12297
(cherry picked from commit 70fec47)
Consistent reset of resource holders on doBegin failure

Issue: SPR-12280
(cherry picked from commit e58b33a)