Fixed log rotation hang when file:delete fails.

If there are no write permissions on the log folder, attempting to rotate the log files by renaming and deleting the log files will fail. This will cause an infinite loop inside lager_file_backend:write/4 if the log file's size limit has been reached.

This change modifies lager_util:rotate_logfile/2 to return the result of modifying the current log file so that the case where the rename/delete fails can be handled.