I really like the article.
I had to use lock_get_mode_str() instead of lock_get_mode(). And the bitmap was printed differently.
(gdb) p $rowlock
$3 = (ib_lock_t *) 0x7f9f94011d40
(gdb) p lock_get_mode($rowlock)
No symbol "lock_get_mode" in current context.
(gdb) p lock_get_mode_str($rowlock)
$4 = 0xc346b8 "X"
(gdb) x /4t $rowlock + 1
0x7f9f94011d88: 00000000000000000000000000011110
00000000000000000000000000000000 00000000000000000000000000000000
00000000000000000000000000000000
This is with 5.6.10 on Linux (64-bit).
And maybe it's better to put the PDF link in at the beginning of the article.