Lebanon is working with Syria to resolve prisoner issues, aiming to ease tensions before upcoming elections.