Don't call palloc() while holding a spinlock, either