very scary, its a horrible feeling to feel like your helpless in a situation, I think given the circumstances you did the best thing possible.Good job & smart thinking on your behalf.

I agree with all the above comments, you should let the owners know,take someone with you but don't go under the impression they are irresponsible, maybe suggest they get an extra latch/lock/rope tie even for the gate.