Effective mass in nuclei and the level density parameter