establish framework of LockInst

Signed-off-by: xiehuc <xiehuc@gmail.com>