You can enter the lounge anytime AFAIK but check in is definitely only opening 2 hours before.
I’m a regular BCN traveler and i did ask the staff there a few times. Only to be told that “BA pays AENA for the check in desk to be manned only 2 hours before the flight”
but as said if the check in from a previous flight is still going on, they don’t turn you away.