Is it possible to encode or rip to WMA lossless?
Unfortunately, WMA lossless is a closed source Microsoft proprietary format. AFAIK ffmpeg is the only codec that has reverse engineered a decode for these files, but nobody has an encoder solution.
So the short answer is, WMA lossless can only be encoded by Windows.
FLAC is lossless, open source, more widely supported on devices and can be encoded by MB