This is a form of an obstacle dream. All the contributing (if any) factors should be correlated, but as a general guide: An open gate signifies opportunities ahead. A closed gate indicates obstacles which can be overcome if you succeeded in opening it. A locked gate predicts insurmountable obstacles, unless you climbed over it or found a way around it, in which case your frustration will be transitory.