Properly set flags for coinstake and empty coinbase.