Fix memory leak in DB tests

Make sure DB_RunNotify_Yield deletes entries that it added.

Change-Id: Ibc019addea7f5fe545fd04fb799d04947adbe7b7
Merge "Fix memory leak in DB tests"