TW-36044 Show full hierarchy to the build configuration which locks shared resource
(cherry picked from commit e59098a)