Refactor: libcib: new function cib__signon_attempts()
... for future use
It's similar to how it's done in pcmk__connect_ipc().