Fixing the bug of memory corruption by preallocate 4Mx128 and 4Kx4K buffers.

The bug is because when messages come too fast, the pami transport layer
starts to use the memory that haven't been processed yet. Making the new
content overwritten the old content.

Signed-off-by: Huy Bui <huybui@anl.gov>