add pkg_title function which send proper ansi escape code for the given term

This change support terminal and terminal multiplexer title changes by sending proper ansi sequence.

Also, it fix pkg-info reference in pkg-lock man page.