mod. _create_lock(). File creation should be done with a open write op.

Change-Id: I8d543797d15d6018092ae9e7b458536a2225e456