AJCORE-1261 Resolved issues found using static analysis tool

- add explicit check verfying the member variable aod was set.
  before this the code was relying on the fact that if the announceflag
  was set then the aod was also set since both are done in the same code.
  this adds an explicit check.
- add check making sure jsessionListener is not null.
- the baCommonLock would never have been released if the jSessionListener
  was NULL. Code path added to release the lock.
- fixed memory leak in PropertyStoreImplTest

Change-Id: I621e5fec33d8cdba39157d5fdc2c666f5f5fccab
Signed-off-by: George Nash <georgen@qce.qualcomm.com>
Merge "AJCORE-1261 Resolved issues found using static analysis tool" into RB14.12