Avoid deadlock when setting keyspace on conn