Workaround for cairo crash on Windows

Creates RENDER_LOCK option and enables it by default for MinGW and old cairo versions.