Implement shlib checks for all pkg revdeps in the transaction.

Added three new test cases to verify its correctness.