I do not see and issue with removing the lock and cleaning the lock and barrel. It depends on the gun too. The lock fit should be loose enough to make removing the lock without undue force.
The joint between the pan and barrel should be as close to 100% contact as possible. A dab of grease in the joint should make it water and fouling resistant.
I think the original question was about disassembling the lock, which is overkill. You will loosen he hammer to tumbler fit. The screws will get buggared. The fly will get lost.