Added OpenMP lock to framebuffer writes