[base] inline mconcat
This has already been merged into 8.10, this MR forward-ports it to 9.2, though it is also in effect a partial backport of the pending !4890 (closed), where we are still waiting to resolve the performance impact of the other changes.