mpdata: shared-memory compatible temporary array allocation