Tested again on Windows XP, Inkscape trunk revision 12318. It works as expected. Locking deselects the locked layer. Hiding doesn't deselect anything.
Tested again on Windows XP, Inkscape trunk revision 12318. It works as expected. Locking deselects the locked layer. Hiding doesn't deselect anything.