lib - new structures proc_{sys,v}mem_data to avoid putting large structures on the stack

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>