To dream that you are locking something means that you are trying to hide something or simply protecting what belongs to you. The dream suggests to keep looking after yourself and if it is needed use whatever it takes to keep it.
Dream dictionary: Locking dream meanings
…(Padlock) In a dream, a lock represents a trustworthy person or a virgin girl. Opening a padlock in a dream means escaping from jail, or release from prison. If one who is suffering from depression sees himself unlocking a padlock in a dream, it means that his sorrows or sadness will be dispelled. A lock in a dream also represents a proof, a strong point or a tool. Unlocking a padlock in a dream also means divorce. Locking a door in a dream means seeking a cosigner for a loan or a guarantor. If one who is seeking to get married sees a lock in his dream, it means that he will meet with a trustworthy and a caring woman. A padlock for a traveller in a dream means safety. A metal lock in a dream means dignity, safety, piety, deciphering a language, symbols, or acquiring knowledge. Wooden locks…
…mean his failure to properly manage that household. The gates of a city represent a righteous governor. In a dream, the door of a house also represents the protection it houses behind it, including one’s property, personal secrets and family. If the door is well built in a dream, it means protection of one’s private life. Otherwise, whatever maybe seen through such a door means exposing one’s private life. If one sees a carpenter building him a new door, this means glad tidings of health and wealth. If one sees himself unable to properly secure the closing of his door in a dream, it means difficulties caused by his wife. If one sees himself changing his door in a dream, it means moving into another house. If one sees himself entering his house and locking his door in a dream, it means protection against evil. (Also see Doorjamb | Door…
…Buying a container of ice during a hot weather in a dream means profits that will bring financial stability to one’s family, or hearing good news that will comfort and cool one’s heart. Winter’s ice in a dream means washing away one’s difficulties and trouble. It also means forcing one’s conditions upon his oppo- nents. A snowstorm that culminates in icy roads, freezing and impeding the traffic in a dream means economic depression and slowing of the travel industry. Ice in a dream also represents men’s endurance. Filling a pot of water to make ice in a dream means saving money, or locking a coffer….
In a dream, straw represents richness, prosperity and a good harvest, for one who gathers straw ends and brings them home. Eating straw in a dream means poverty and hunger. Locking or placing straw in an unsuitable container such as safe or a dresser in a dream means depression and destruction of cattle feed. Straw in a dream represents charities. Abundance of straw in a dream also represent a community where the female count exceeds the number of men. Wheat straw in a dream means goodness and trustworthiness. (Also see Wheat straw)
(Shut) If a single man sees himself shutting a door in a dream, it means that he will marry a righteous woman. If a married man sees himself shutting a door in a dream, it means that he may divorce his wife. Locking a door in a dream also means getting married, though unlocking a padlock has negative connotations. If one sees his door locked in a dream, it means that he will choose to pursue his worldly satisfaction instead of fulfilling his religious obligations. If one tries to lock the door of his house and fails to do so in his dream, it means that he will abandon a hard decision he took, or refrain from pursuing the impossible in his case.
…A padlock in a dream represents an employee who is treated roughly and unfavorably. A padlock made from wood in a dream represents deceit and hypocrisy. Locking one’s door securely in a dream means managing and controlling one’s business in accordance with the divine laws. If one’s door does not have a lock in a dream, it means that one has no control over which way his life goes, and that he cares little about its consequences. Attempting to lock one’s door, but to no avail in a dream means one’s failure to complete an important project. Breaking a lock and entering a house in a dream represents a conqueror or benefits that will come through such a person. A padlock in a dream also represents a bolt, a door latch, one’s son, a handicapped wife, taking shelter away from one’s enemy, a hidden treasure, or a burial ground….