talloc: use atexit() again instead of a library destructor