This node is locked

This message means that Elasticsearch definitely sees cluster.initial_master_nodes in its settings, and the only way to fix the warning is to remove the setting. Are you sure you're editing the right config file? Or maybe you're passing the setting in on the command line instead?