Added global timeout option

Allow to set a global timeout option, not just for `->wait()` (because sometimes `->commit()` is painfuly slow and timeouts)