Avoid deallocating hwsm statics during shutdown.

We've had some reports of these being accessing during shutdown,
causing a crash. This is a common issue, since binder threads may still
be running while the main thread is shutdown. This is similar to
'DoNotDestruct' used elsewhere in libhidl*. Although, this class isn't
used again here since there are no ABI requirements to maintain.

Bug: 153909639
Test: boot on cuttlefish
Change-Id: Ic01dc15f739a0957f39aaf6a7b3e17fc4f7f6048
Merged-In: Ic01dc15f739a0957f39aaf6a7b3e17fc4f7f6048
1 file changed