I wouldn't attempt to do a 2 hours hop on/off bus tour of Barcelona with a 5 hour layover....even if the lockers at the Barcelona airport are open. It's just too short of a time period to allow for the full circuit of the bus and not worth the expense.