Fix leak in library instances.

Give libinst and dynlink objects finalisers!