Lockerbie bomber Abdelbaset al-Megrah could be freed on bail pending the outcome of an appeal against his conviction.