Stop freezing elasticsearch indexes.
Elasticsearch 7.14 has deprecated index freezing, thanks to improvements in heap memory usage[1]. So we can stop freezing indexes and just close them, which should also reduce issues with logstash on restarting servers.
Test Plan
checked that the updated script works on a local elasticsearch
Migrated from D6655 (view on Phabricator)