mds: high debug logging with many subtrees is slow
3 - minor
Pull request ID:
In various places the MDS prints subtrees to the debug log. We should truncate the list if the number of subtrees is large.