Refactor: libcrmcommon: Reduce code duplication in crm_ipc_send.
The two send branches - one for if there's a timeout, and one for if
there's not - are identical except for checking a timeout value. These
can be condensed into a single block of code with a somewhat complicated
conditional.