bus: fix issue with reference counting

b7fc42e03 introduced a regression.