It's possible.......
OP, I will suggest you get a can of brake cleaner and use the little tube to get it down into the gas tube and thru the gas port. It will strip any residues out of the gas port, which very possibly might be the problem.
With no knowledge of initial prep before firing by the original owner, and with no knowledge of which cleaning solvents/ substances you or he might have used, there is a decent possibility that some cleaner has 'gunked up' in there somewhere. My guess is in the gas block junction, as it is the smallest spot and most likely to give you an issue.
For general information to ALL AR users, please do not use foam bore cleaners in the rifles. It leaves a gunk residue, and this is a common issue when a barrel is treated with the foam cleaner.
When stripping out an upper, I will actually plug the barrel tip, face the barrel downward, and clean down from the top with the brake cleaner. A lot of shots down the gas tube, and then see what collects down on the cleaning patch in the tip of the barrel. If the rifle was acting like the OP's unit, you usually see some stuff coming out of that junction in the gas block, and after thorough drying, re lubing and firing, the rifles usually work properly.