cgdb: use readline opt_prefix, not prefix

Fixes #24858.