libmemif: remove per_thread_ namespace