Rename lock_t to mutex_lock_t to fix Solaris compilation

Fixes #1510