PYCBC-197: Don't modify remaining count on lcb_wait failure

Change-Id: Iec44b9e9fa40e12baef5f18e0eb1ef0a8379a05d
Fixup warnings under -Werror -Wextra

Change-Id: Ia6994fa85251549b441f31b742542a11a106e4ef
Moved

Change-Id: I05e2fd32a0be78aaa29650c084871e0f84547d3d