Dar 337 wall notifications

A few changes here:
- using master db when user wall was created during the request
- some test code to check if we can simplify WallMessage::getWallOwner implementation
- fixing memcache sync usage