1. What are localizations of your MB & windows? Probably you need to call:
mbApiInterface.Library_SetFileTag(mbApiInterface.NowPlaying_GetFileUrl(), MetaDataType.Rating, "3,5");
2. Note that tag changes (writing changes to file) for now playing track can be delayed until next track is played.