added pin viewing logic for locked pins

onMarkerClick now analyzes user position and pin lockedness to decide
weather or not to show it.  It also calls to unlockPin on DBStore if
needed.