free mutex in free_package(). use a lock on stub packages to cover small hole on ->dfanext head