XCOMMONS-705: Upgrading an extension on a namespace and it's jar dependency on root does not work

(cherry picked from commit f74a07914a98fdab7533b1ecb86faba440542465)