[jvstm-ojb] Fixed the flattening of speculative read-only transactions

  * Write commands can now be flattened when the current transaction is
    running as speculative read-only.
  * This way, WriteOnReadErrors can now be detected by the outermost transaction,
    restarting it instead of only the inner transaction (which should be flattened)