Bug 861796 - Fix crash in LibHandle::~LibHandle. r=nfroyd