lsp: use own os.Stat etc implementations for ctime (linux only for now :(), refactoring