Locking Fixes

Fix various issues with locking and scale out, including #49