Added functionality to dynamically determine the stacks of the owned process and threads, so we can skip over stack accesses when generating the memory trace. This is Linux-specific.