SPM: Optimize static handle check macro

Sometimes program only needs to check if the handle is static.
So, the IS_VALID_STATIC_HANDLE() macro can be split into two
different macros:
 - Check if the handle is static.
 - Check if the index information in static handle is valid.

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