Add a generic function to check for write iopsOH
Use alloc locking for all allocations
Allow configuration of certain memory usage thresholds
sprt crash fixes