ruby client: add --max-pending-finished-sessions command line option