htmldoc: basic thread support addition

Signed-off-by: Yannick GICQUEL <ygicquel@gmail.com>