Add tm_memory_rollback() for separate memory

Add function tm_memory_rollback() to rollback memory when a quantum is forced
to roll back. Correctness is *not* tested strictly.

Signed-off-by: Le Tan <tamlokveer@gmail.com>