eal: add API to lock/unlock tailq list