An urgent patch has been released for two bugs affecting the Matrix messaging protocol used by some governments for secure communications.