defrag: removed old defrag code for good

Also added msync call after index is sorted to protect against power
loss.