make keyguard related code being independent of framework/base

N/A

Change-Id: I55c92969d21c1e3646aa3f95b71ce4c77043a012
Signed-off-by: mochangming <mochangming@xiaomi.com>