RMem and RMemTool bug fixes

 - RMem checks that the section indices provided by the application are
   ascending in order to avoid sequence order deadlocks.  But the code
   that performed this checking used unsigned integer arithmetic and
   had an arithmetic underflow if zero section indices were passed.

 - RMemTool used the wrong view layout member for the number of section
   locks that a view has.