hexview: Wait for the worker until marking ranges

Should avoid some unpleasant crashes