(#23141) Rework 'remounts' for BSDs

This also implements using the equivalent operation on the various BSD(-derived) systems, except for AIX.