vlib: add max-size configuration parameter for pmalloc