I have not experienced this myself, but it sounds like the male hormones are kicking in, and they have the need to protect you. i have the experience of them urinating on someone while I have been talking to for a while, and they are indicating to me that they need to move one, as this is boring for them.
They only seem to be "serious" about protection when it is somebody they dislike. Some people, like us, will not engage with people they like, and some they will engage with because they are not sure about them, or for the Bs to just dislike them and negatively engage with them.
The answer is to socialise them more! Take them to a obedience training to get them used to people and pets (you hardly call other dogs, than Basenjis, real dogs). You and yours will get more familiar with your B, and learn what is good and what is not good. You will also learn more about yourself, and how to live with a companion, and what "can' make them do some of the things that make these quirky guys so interesting.
I do have an 8yo who has overcome his desire to be king-pin and bashing up his litter sister, but it has taken awhile. Good luck with your socialisation, and perserverance, from both you and your furry kid.