[THEME] Fix prototype of mcGetThemeTextExtent().

The 5th parameter is of type const WCHAR*, not const TCHAR*.
Use C99 "restrict" where useful.