Fix re-entrance issue of SIGWINCH handler

Thanks to @jquast for reporting the error and providing a solution.

This also fixes delayed redraw of score and drawing when the terminal is
too small.
Merge branch 'improve_resize' into develop