Update my.cnf without restarting MySQL
You can always check MySQL manual if a variable is dynamic: http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_lower_case_table_names

Unfortunately lower_case_table_names is not. So you have to restart MySQL to make this variable picked up.