Lebanon poised to grant amnesty to thousands of prisoners