[AS7-6196] Resolver environment may cache stale package capability

https://issues.jboss.org/browse/AS7-6196
#### Contains #3710