Forcing police officers to declare whether they are part of the Freemasons would be “unnecessary and wrong”, a staff association has said.