shaft locking device