if that happens, you'll gonna stay there (bahrain airport) till your visa is ready... there will be no problem even if you stay there for more than 24 hours... just bring extra clothes and money just incase...

 

have you seen the movie 'terminal' of tom hanks? if not, watch it so you'll get an idea what it's like to be stucked at the airport... :)