One of the reasons when it may happen if you switch to InnoDB and there are deadlocks, if you have set deadlock timeout in MySQL to 30 seconds then some pages could take 30 seconds or more to execute, I've written about MySQL settings for InnoDB here:
https://una.io/cmts.php?sys=bx_forum&id=3139&cmt_id=13128