Update on LockManager

Let the lock manager call data manager to abort transactions in lock
granting procedure. Sort the waiting queue before processing it.