[libbus] Add thread ownership functions