Fixed thread synchronization issues

Fixed thread synchronization issues with the static method calls when
using Number3D instances as arguments which caused GLThread to slow down
dramatically and blank in and out when the method is called.