TableProvider locking added