Inc and dec ref count of Octets atomically, move Protocol and ProcessTask from common to net namespace.