Merge HDFS-5014. Process register commands with out holding BPOfferService lock. Contributed by Vinay.