Introduce clear_cached_kids_on_disconnect

This can be used to prevent the list of prepared statements from being
cleared right before disconnection on databases which aren't bothered by
that, e.g. PostgreSQL.