core/gatt: Remove CCC state if no longer active

If the device object cannot be found or the device is not connected and
is not paired remove the CCC state as it is no longer valid.
1 file changed