Make an object aware of process forks and threads, recreating itself as needed