Fixes #3473: evictAll should keep locked keys in map

Fixes #3473