The test passes (would have failed in parent commit) because a lock is taken in the scoped proxy itself, not in the target.
Spring Cloud Context
Utilities and special services for the ApplicationContext of a Spring Cloud application (bootstrap context, encryption, refresh scope and environment endpoints).