Improve autoload method of watchdogs

Use BufWritePre