The replSetMaintenance command does not take the RSTL when changing replication state.
This is problematic for operations that make assertions based on replication state. Operations that hold the RSTL assume that the state does not change.
In one example, changing the replications state from SECONDARY to RECOVERYING in this way can fail an assertion in AutoGetCollectionForRead.