sharedRecordsUnderLock
private fn
SharedRecord!Handler[] * sharedRecordsUnderLock(Handler)(
shared SharedState!Handler state) @trustedReturns the record array as unshared. Caller MUST hold state.mutex: the lock provides the happens-before edge that makes the cast sound.