Removed unneccessary thread locks. Made sure to set global uniforms on program bind