Nicer way to mock PDO in MySqlLock