I've tried various versions of batch allocations for nodes and so far haven't found a way to make it improve performance.
Bug 1843932 Comment 4 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
I've tried various versions of batch allocations for nodes and so far haven't found a way to make it improve performance. But yes, if mozjemalloc provided some new API to avoid locking, that might work better.