renderer: fix deadlock waiting to happen