I'm hopeful that there is a fairly straightforward solution for this annoying bug, because it's clear that in another situation the profile has no trouble detecting which signed-in user is looking at the profile page: When you look at the books on someone else's profile, books that you have in common disply your own Bookmarks.