Implement PDO SessionHandler with locking support