lock: using minted replace list

Signed-off-by: Micky Ching <mickyching@gmail.com>