JBTM-2188 Add PrivilegedAction blocks to the FileSystemStore

Backport to the 4.17 branch for https://bugzilla.redhat.com/show_bug.cgi?id=1162882
https://issues.jboss.org/browse/JBTM-2188