If you dream of being locked tight and on display in an old fashioned goal such as was once used you will find yourself hindered on every turn as you try to reach your own goal (aim) in life. If you are released and pardoned you will find your business enjoys much prosperity after a bad start.
Hats are usually symbolic of power and authority. They also stereotype the person that is wearing it. Look at the details in your dream especially