Remove the explicit kstat_close and use a custom destructor for the KstatCtl struct.