Added a mutex for page loading, should fix crashes for linux