The head of Libya’s oil workers’ labor union, Saad Dinar, was released on Thursday after being held by eastern security authorities for almost a month near Benghazi, a relative said.