Fix deadlock when deleting ghost of closed index. Support closing non-durable indexes.
Merge remote-tracking branch 'remotes/origin/master' into repl