Change AppInstance to use read/write lock