moved enc lock to netif