java, py: fix binding code bug for client cleanup

may lead to resource leak
refactor: rename ex_data to ls_ex_data of struct pc_config_t

ls_ex_data is a more meaningful field name than ex_data