Change interfaces to call preemption timer

Change the interface to call preemption timer, prepare for new method of sync. Add a
global variant kvm_record_type to indicate the type of sync method.

Redesign the error path in tm_commit().

Signed-off-by: Arthur Chunqi Li <yzt356@gmail.com>