Fixed concurrency bug by using a paging lock isntead of spinlocks