> This PR:
>
> - fixes printed lock orders
> - improves the sync_tests unit test
> - makes the "detected inconsistent lock order" error message pointing to the lock location rather tfm::format() location.
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/19353 | core#19353]]