Merge "Fix NOT_RESTRICTED network capability and enforce it." into lmp-dev