log: removed old racy logging code

We don't use !__GNUC__ compilers
data-sort: fixed error check for datasort_base_get_path()
data-sort: added support for sorting multiple bases
data-sort: turn on merging of bases on defrag