fix(util/stackinfo): handle error codes in the Linux version

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>