Both of these situations are indeed locked hands violations by the offensive wrestler.
In Situation A, assuming that the top wrestler is still in control (no escape has been awarded to the defensive wrestler), this would be locked hands around the body by the offensive wrestler as long as the defensive wrestler is not completely on his feet (hands still on the mat). Even though the offensive wrestler has moved out in front of the defensive wrestler, he is still in control and cannot lock his hands around the body. This is a call that very often gets missed by officials, but by rule it is locked hands and should be called.
In Situation B, if the defensive wrestler comes to his feet and the offensive wrestler locks his hands around both legs to bring him back to the mat, when the defensive wrestler comes back down to the mat, the offensive wrestler must then release his locked hands. If he keeps his hands locked beyond reaction time after coming back down to the mat, this is a locked hands violation.
You are correct in that both situations you presented are calls that are often missed by officials, but the officials that called locked hands in these situations made the correct call.