sd-bus: call cap_last_cap() only once in has_cap()
Also, use the same type everywhere for dealing with it.
(cherry picked from commit 92a40e20bf970c3ded8a50fbeeae882a7b970c9a)
Resolves: #1683319
patch_name: 0186-sd-bus-call-cap_last_cap-only-once-in-has_cap.patch
present_in_specfile: true
location_in_specfile: 186
squash_commits: true