interface: changed mutex locking routine
prim: moved ugly GUI sync routine into separate function
fibheap: introduced GUI sync routines