libsmb: Factor out cli_status_to_errno() from cli_errno()