How to make two bones have the same rotation matrix?
First select the bones you want to have the same coordinate system, make sure that the Active bone is the one rotation matrix you want to give to the other, now press CtrlN to open the 'Recalculate Roll' properties and choose Active Bone.