Sergio Garcia needed three attempts to get out of two bunkers as he ended up carding a double bogey at the fifth hole in the third round of The Open Championship at St Andrews.