Fixed issue on file space extend when posix_fallocate is used. Merged second iteration of multi-threaded flush code.