I have double checked it with gdb: It is only called from the GUi thread. I will ad a comment. 
Or should we use a mutex or an assert anyway?