cnic: Convert cnic_local_flags to atomic ops.