The UK equalities regulator has written to both the Scottish Government and NHS Fife about staff access to single-sex changing facilities.