session: fix enum mismatch in rpc_handle_get() and rpc_handle_set()