MINOR: pattern: use trim_all_pools() instead of a conditional malloc_trim()

First this will ensure that we serialize the threads and avoid severe
contention. Second it removes ugly ifdefs and conditions.
1 file changed