[libcxx] Fix ctype_byname<wchar_t>::do_is() mask checking.

This patch: http://reviews.llvm.org/D5081
Original patch: http://reviews.llvm.org/D5071 (from @danalbert)