Updated copyright notices to include the year 2018.
lib: Fix file_create_locked() unit test to delete temp file afterwards Also removed a path string that was never used.
lib: file_create_locked() - Add settings to mkdir() missing parent directories
lib: Add unit test for file_create_locked()