Attempts to lock cursor