Improve robustness in pool cache
|Category:||Core & System|
Cached pool objects are indexed twice, by ID and Key (name-owner).
The pool object lock mechanism is closely related to the pool mutex and cache, but it can be managed by any other component.
We should simplify the cache to make it easier to add new features in the future.