This is referred to as the exception that proves the rule. Each of your examples is indicative of familiarity. The diminutive is specifically used to denote the relationship between the parties. Walk up to a stranger and keep calling him “boy,” see how he reacts.