motorola/common-ghost: add write_protect check

Change-Id: Ib3e1a964bbb9181d98dc29fb6b66894212868ef6