In all cases where alimony or an allowance shall be decreed for a spouse or children the court may require security to be given for the payment thereof.