Added lock_create