Revert "Add LOCK_EX flag to file_puts_contents"

This reverts commit 9049f17bbd28011158cab60125bc5cd508e29062.