Eugene Laverty had to settle for second place on the grid as Tom Sykes took his fifth straight pole position by the slenderest of margins for the sixth round of the Superbike World Championship at Portimao in Portugal.