Threading bug fixes, gl_return deletion, ql_path development.

ql_return was considered obsolete and was removed.
ql_path type definition and base functions were created.
Several bug fixes inside ql_once and ql_mutex types and functions.