The node you are looking for is at Spacing - Harmonizing bar line thickness for staves with different sizes.