Need content lock in write mode for open/close

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
Signed-off-by: Rong zeng <rongzeng@us.ibm.com>