Previously the private data of each protocol registered to use ST wasused to determine whether the protocol was registered to use sharedtransport or otherwise.However, now a flag is_registered is maintained to identify whether aprotocol intends to use ST.Upon closing of the UART the error message relevant to this lack ofun-registration was misleading and this patch fixes that.