RRel - add 'struct' keyword where missing
RMem - Reject attempt to lock zero sections

This restriction is needed because the function to unlock does
not accept the situation of zero locked sections.
Merge branch 'master' into scratch
Scratch: use correct lock count