rilmodem: fixes possible segfault issue in USSD

This patch fixes the possible issue where USSD termination notify received at wrong time crashes oFono. This patch also removes some code that is not needed e.g. registration for obsolete RIL_UNSOL_ON_USSD_REQUEST.

At least 2 person have indicated that patch is ok and works.