Restore users' permissions only if Mnesia is running
Signed-off-by: Peter Lemenkov <lemenkov@redhat.com>