Don't allow get_lock() or get_token() on the wrong resource type, for real, Plus test