A Scottish court has denied bail to a Libyan man with terminal cancer who was convicted of the 1988 bombing of a U.S. airliner that killed 270 people .