Downhole motor locking assembly and method