elasticsearch: run preStart as root, to allow creating the necessary directories.

(cherry picked from commit 40566790d3afa96d220a3d83054b25123a3e8195)