Fix memory leak in system_server when screen on/off

Change-Id: I3ed7be519fc9301dd45d162773a6d0d62de12d76