Allow real memory errors (from locked gc) to be reported with traceback.
py: Add #if guard around gc-specific code.
Merge branch 'dhylands-memory-error'