Support for [MSC3856](https://github.com/matrix-org/matrix-spec-proposals/pull/3856): threads list API.