Local cache locking ugfixes.