Clean up mining CReserveKey to prevent crash at shutdown

This is better memory management of the mining CReserveKey, anyway.

Fixes issue#2687