MB-12801 Fix some bugs related to deleted KV store

- Ignore KV store statistics updates for deleted KV store.

- If KV store is removed before WAL is flushed, there are stale WAL
entries for the deleted KV store. They should be ignored.

Change-Id: I259b781fd66a3738ff12f98aa357ea3b50e5ffa2