Treat non-final transactions as non-standard

Port from Bitcoin: 6f87307
and cleanup