[netinfo] Create extension statedir only once