A court or judge awarding an injunction to restrain the removal of property out of the state may require bond to be given before such officer and in such penalty as it may direct, conditioned to have the property forthcoming to abide the future order or decree of the court, and, unless such bond be given, may order the officer serving its process to take possession of the property and keep it until the bond be given, or until the further order of the court.