fix DirName / BaseName calls
These replacement functions still point to a static variable inside the scope
They are not thread safe and calling them will overwrite any previous assignment value
This patch fixes a few occurences causing erroneous log display
We also do not pass them as argument to other function to simplify code maintenance
add thread safe dirname and basenaem alternative for md5 check threads

The bug was not actually triggered, but for easier maintenance, we avoid these in threads
libtouch_gui 1.10:
disable gesture actions during md5 checks to avoid wired thread unsafe issues
cherry-pick @mdmower patch fix to legacy props setup
this mainly adds proper error checking
formatting fixes
really hammer lazy devs
6.23.7
revert using ntfs module and drop to fuse for complete write support
6.23.9 / libtouch_gui 1.11
support time_daemon /data/system/time path used on some ROMs
Xperia ZL (by shoey63)
append string to file function
formatting
enhance md5 check code
fix gathering files under some circumstances
add missing headers to previous commit
Use our new md5 code for all nandroid / twrp operations:
- use new md5digest code to generate/verify nandroid/twrp md5 sums
- bring progress bar during nandroid/twrp md5 generation and check
- exclude log and md5 file when regenerating md5 files
- twrp mode: fix double md5 verification bug
- fix delete backup menu failed to reopen base backup folder + wired log message
Update 6.24.6 / libtouch_gui 1.15 :
- show loading time daemon message on recovery start
- fix the "umount: can't umount /data: Invalid argument" log message on start when time daemon was loaded
Update 6.24.7 - libtouch_gui 1.16:
- fix when quickly doing two gesture actions one after the other, highlighted menu could be validated
  we only allow gesture actions when the previous one is terminated
- set these default gesture actions:
   * swipe left = screen off
   * swipe right = increase brightness
   * press 1 sec and lift = show log
   * press 2 sec and small move = screen shot
merge: Only init legacy property environment once
Installing multiple pre-kitkat packages in succession may cause
legacy_properties_init() to fail. Only initialize the workspace once and
then just do path renames for all subsequent requests to enable legacy
props.