Can't comment about Ryanair but EJ would appear not to lock it either based on my last two flights. The location of the foward toilet makes loitering by the cockpit door easier. A BA flight to Barcelona a few weeks previously was the opposite. Locked door (that also seemed to have reinforcing plate on) and zero communication from the flt deck en route. As a passenger an unlocked door isn't really a concern for me. Poor airport security is.