[lib] add seaf_daemonize
[client] cleanup unused code