Tools: Improvements on static handle encoding

Convert static handle index from [1, maximum] to [0, maximum-1]
to be used directly as the tracking table index.

Change-Id: I2acd4de1459c1652a4b2f45f437da1a91db1465e
Signed-off-by: Mingyang Sun <mingyang.sun@arm.com>
3 files changed