[Core] Make RenderLoop.Control setter and RenderLoop.NextFrame a bit more thread safe (not completely)