frameLock

A lock to synchronize access to the C++ renderer object between the UI thread (which handles lifecycle events like delete()) and the Choreographer thread (which executes doFrame()). This prevents a race condition where the UI thread might nullify the C++ pointer while the worker thread is still using it.