XEP-0198: Support "resend_on_timeout: if_offline"

If the `ejabberd_c2s` option `resend_on_timeout` is set to `if_offline`, resend unacknowledged stanzas only if no other resource is online when the session times out.  In other words, allow for sending them to offline storage, but nowhere else.