use posix spin lock for AutoArray if available