LUCENE-6124: fix broken close() methods in .store/.codec apis

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_5x@1646868 13f79535-47bb-0310-9956-ffa450edef68
LUCENE-6127: fix mockanalyzer to not use asserts

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_5x@1646890 13f79535-47bb-0310-9956-ffa450edef68
LUCENE-6124: fix double-close() bugs in WindowsFS etc

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_5x@1646898 13f79535-47bb-0310-9956-ffa450edef68
LUCENE-6124: fix double-close bug in BaseDirectoryWrapper

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_5x@1646899 13f79535-47bb-0310-9956-ffa450edef68