Outliner rename callback is supposed to activate affected element before actually renaming, but for bones this was not working because the function used to activate the object explicitely ignored ID_OB case! Added a bool flag to allow handing this case without (possibly) breaking the other usecases.