Implement working eglSwapInterval == 1

This builds on Jason's PR #208 and implements eglSwapInterval==1 fixing some threading issues alongside. This would better be tested on many devices since f19199b may be problematic.