lua : add a reset() function for libs
force self->widget to null when a lib's UI is destroyed