Rename lock_t to guard_lock_t to avoid conflicts with Solaris headers.