Lionel Messi scored his 500th Barcelona goal with seconds to go to send Luis Enrique’s team above 10-man Real Madrid at the top of La Liga