Removed the LOCK_EX for file_put_contents.

Unseting namespace setting in right place.