Revert "add global keyword to highlight the fact that _cache_lock is a module-wide variable"
This is actually not valid python. Whoops

This reverts commit 612eef863da2aa9df82f00275f51670bddc8b977.