Fix: add a library cleanup flag

This flag is used to make sure we don't cleanup torsocks twice which
could lead to out of bound memory access.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>