Fix several threading issues around last leader actions.