t/test-lib: introduce --chain-lint option