bna: change type of bna_id to atomic_t