Bug 449479 - Fix Exceptions and LC cache corruption on LC delete

Change-Id: Icd211eb1c9c34082208a709926b56affee6eac61
Signed-off-by: Jonathan Williams <jonwilliams@qnx.com>
Reviewed-on: https://git.eclipse.org/r/35748
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>