A blunt NYPD captain who badmouthed Zohran Mamdani as “expendable” and “not my mayor” in a viral video has been transferred out of the spotlight, officials said. Capt. James G. Wilson, 51, was shipped from the 94th Precinct — where he served as the second-highest officer for the station house covering Greenpoint — to the…