p.haul: move memory tracking support detection to separate function
p.haul: move memory tracking support detection to separate function

Move memory tracking support detection to separate function to
simplify migration logic.

Signed-off-by: Nikita Spiridonov <e2c2785991de10f66b050593578d4296c6c8705d@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@virtuozzo.com>

jne100/p.haul,xemul/p.haul,xemul/p.haul,xemul/p.haul,arthurlockman/p.haul,xemul/p.haul,aburluka/p.haul,arthurlockman/p.haul,aburluka/p.haul,aburluka/p.haul,arthurlockman/p.haul,jne100/p.haul,jne100/p.haul,aburluka/p.haul,jne100/p.haul,arthurlockman/p.haul,xemul/p.haul,aburluka/p.haul,jne100/p.haul,arthurlockman/p.haul