remove encoder lock, change to atomic and thread local check

Test: Run
dEQP-VK.synchronization.internally_synchronized_objects.pipeline_cache_compute
20x, no failures/crashes/hangs

Change-Id: I5d4440149fc1d0780b935495a784500de7988756
6 files changed