Fix long realization name hashing -- Leave room for .LOCK, don't overwhelm PBS task names, and more.