It piece of code from Skype chat between me and C-CEX, it was removed from bitcoin long ago, but remain present in litecoin forks and litecoin itself. Didn't jump into conclusions yet, but found some evidence it could cause behavior with the key pool:
https://github.com/bitcoin/bitcoin/pull/2904 . In that case allmost all litecoin forks are affected,
just blowed up on SSD.