Psychology says children who behave differently around a friend's parents may be trying to avoid one thing