cocoa_common: fix deadlock when calling resize_redraw

Fixes #82